package com.zcf.pojo;
import	java.lang.annotation.Documented;

import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author ZhaoQi
 * @since 2019-03-18
 */
@Data
@TableName("user_table")
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "userid", type = IdType.AUTO)
    private Long id;
    private String phone;
    @TableField("nickname")
    private String wxname;
    @TableField("avatarurl")
    private String wximg;
    private String openid;
    private Date createtime;
    @TableField(exist = false)
    private String roomName;
    /**
     * 金币
     */
    private Integer money;
    /**
     * 钻石
     */
    private Integer diamond;
    /**
     * 账号状态 0正常 1冻结
     */
    private Integer state;
    /**
     * 用户类型  0普通用户  1游客
     */
    private Integer type;
    /**
     * 是否已登录
     */
    @TableField("isLogin")
    private Integer isLogin;
    /**
     * 签名
     */
    private String remard;
    /**
     * 0 女  1男
     */
    private Integer sex;
    /**
     * 地址
     */
    private String address;
    private String ip;
    /**
     * 上级ID  0无上级
     */
    @TableField("fId")
    private Long fId;
    /**
     * 角色  0普通玩家   1推广员
     */
    private Integer role;
    /**
     * 平台标识
     */
    private Integer sdk;
    /**
     * 创建时间
     */
    private String date;
    /**
     * state=1时需要写入
     */
    private String statetext;
    /**
     * 6位邀请码
     */
    private String code;

    private String password;
    /**
     * 奖卷
     */
    private Integer award;
    @TableField("text_1")
    private String text_1;
    @TableField("text_2")
    private String text2;
    @TableField("text_3")
    private String text3;
    @TableField("text_4")
    private String text4;
    @TableField("text_5")
    private String text5;
    @TableField("number_1")
    private Integer number1;
    @TableField("number_2")
    private Integer number2;
    @TableField("number_3")
    private Integer number3;
    @TableField("number_4")
    private Integer number4;
    @TableField("number_5")
    private Integer number5;
    /**
     * 用户归属
     */
    private Integer zcfUser;
    @TableField("isPay")
    private Integer isPay;
    @TableField(exist = false)
    private String newPassword;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
